// src/main/ets/types.ts
export interface ApiResponse<T = any> {
  success: boolean;
  message?: string;
  data?: T;
}

// 登录响应类型
export interface LoginData {
  firstName: string;
  lastName: string;
  phone: string;
}

export type LoginResponse = ApiResponse<LoginData>;

// 注册响应类型
export interface RegisterData {
  userId: number;
  phone: string;
}

export type RegisterResponse = ApiResponse<RegisterData>;